package day_06;

/**
 * @ClassName Test
 * @Description TODO
 * @Author hp
 * @Date 2021/6/8 10:16
 * @Version 1.0
 **/
public class Test {
    public static void main(String[] args) {
        /*Object[] num = MathTools.approximateNum(10);
        for (int i = 0; i <num.length ; i++) {
            System.out.println(num[i]);
        }
        System.out.println(MathTools.comperTo(10,15));
        System.out.println(MathTools.primeNumber(11));*/
        /*int[] a = {1,6,4,3,2};
        a = ArraysTools.sort(a);
        System.out.println(ArraysTools.toString(a));
        */
        rectangle rectangle1 = new rectangle();
        rectangle1.setX(10);
        rectangle1.setY(15);
        rectangle1.setArea(rectangle1.area(rectangle1.getX(),rectangle1.getY()));
        rectangle1.setPerimeter(rectangle1.perimeter(rectangle1.getX(),rectangle1.getY()));
        System.out.println(rectangle1.toString());
    }
}
